package com.wuyoucar.controller;

import com.wuyoucar.util.WeatherUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/weather")
public class WeatherController {

    @RequestMapping("/getWeather")
    public Map<Object,Object> getWeather(){
        return WeatherUtils.getWether("440300").get(0);
    }
}
